package me.edzh.spring.bootstrap.service;

import java.util.HashMap;

public interface PushNotificationService {
    int PUSH_ANDROID    = 0b00000001;
    int PUSH_IOS        = 0b00000010;
    int PUSH_ALL        = PUSH_ANDROID | PUSH_IOS;

    default boolean pushAndroid(int config) {
        return (PUSH_ANDROID & config) != 0;
    }

    default  boolean pushIOS(int config) {
        return (PUSH_IOS & config) != 0;
    }
    void send(String alias, String message, HashMap<String, String> extend, int pushConfig);
}
